/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package administrador;

import java.sql.CallableStatement;

/**
 *
 * @author Administrador
 */
public class bajanutri {
    conectadmin conn = new conectadmin();

    public String bajanutriologo(String cedula){
        try{
            if (conn.conectar()) {
                CallableStatement cs = null;
                cs = conn.conexion.prepareCall("begin Baja nutriologo(?);end;");
                cs.setString(1, cedula);
                conn.conexion.close();
                return "Registro Guardado";
} else {
return "Registro no Guardado";
}
} catch (Exception ae) {
            return "Error al ejecutar el procedimiento: " + ae;
}
}
}
